package eip.chapter8.expiration.mediator;

import org.apache.synapse.MessageContext;
import org.apache.synapse.Mediator;

public class WaitingMediator implements Mediator {

	public boolean mediate(MessageContext synCtx) {
		try {
			Thread.sleep(1000);
		} catch (InterruptedException e) {
			// ignore
		}
		return true;
	}

	public String getType() {
		return "WaitingMediator";
	}

}
